package com.ktjy.service;

import com.ktjy.entity.StorageRecord;
import com.ktjy.mapper.StorageRecordMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Transactional
@Service("storageRecordService")
public class StorageRecordServiceImpl implements StorageRecordService{
    @Autowired
    private StorageRecordMapper storageRecordMapper;

    @Override
    public int insertStorageRecord(StorageRecord record) {
        return storageRecordMapper.insertStorageRecord(record);
    }

    @Override
    public int updateStorageRecord(StorageRecord record) {
        return storageRecordMapper.updateStorageRecord(record);
    }

    @Override
    public int deleteStorageRecord(int id) {
        return storageRecordMapper.deleteStorageRecord(id);
    }
}
